/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c), 2003-2011,  Jin Chen and Alan M. MacEachren, GeoVISTA Center, Penn State University
 * Licensed under Simplified BSD License
 *
 *
 * @author: jin Chen 
 * @date: Aug 19, 2004$
 * @version: 1.0
 */
package edu.psu.geovista.app.pcp.toolkits.table;

import javax.swing.*;
import javax.swing.table.DefaultTableCellRenderer;
import java.awt.*;

public class ConfigurableTableCellRender extends DefaultTableCellRenderer {
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
        //System.out.println("cell["+row+","+column+"]");
        JComponent comp=(JComponent) super.getTableCellRendererComponent(table,value,isSelected,hasFocus,row,column);
        /*Object v = this.getColorConfigureTable.this.getValueAt(row,column);
        if(v instanceof String ){

            comp.setToolTipText((String) v);
            //comp.setBackground(Color.)

        }*/
        return super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
    }
}